@echo off

set ARCHETYPE_GROUP_ID=cn.hyway.demo
set ARCHETYPE_ARTIFACT_ID=MyProject-archetype
set ARCHETYPE_VERSION=1.0-SNAPSHOT

set GROUP_ID=%1
set ARTIFACT_ID=%2
set VERSION=%3
set PACKAGE=%4

set MAVEN_REPO_URL=%5

set OUTPUT_DIRECTORY=%6
set MAVEN_PATH=%7
call %MAVEN_PATH% archetype:generate ^
-DarchetypeGroupId=%ARCHETYPE_GROUP_ID% ^
-DarchetypeArtifactId=%ARCHETYPE_ARTIFACT_ID% ^
-DarchetypeVersion=%ARCHETYPE_VERSION% ^
-DgroupId=%GROUP_ID% ^
-DartifactId=%ARTIFACT_ID% ^
-Dversion=%VERSION% ^
-Dpackage=%PACKAGE% ^
-DinteractiveMode=false ^
-DarchetypeCatalog=local ^
-Dmaven.repo.local=%MAVEN_REPO_URL%


